package com.eaoa.uc.busorder.form;

import com.eaoa.base.EABaseForm;
import com.eaoa.vo.bus.BusOrder;
import com.stony.core.util.CoreUtils;

public class BusOrderUnValidateForm extends EABaseForm{

	// primary key
	private String orderno;
	private String charge;
	private String chargedetail;
	private String pay;
	private String paydetail;
	
	public void setVO(BusOrder vo){
		this.setOrderno(CoreUtils.formatString(vo.getOrderno()));
		this.setCharge(CoreUtils.formatString(vo.getCharge()));
		this.setChargedetail(vo.getChargedetail());
		this.setPay(CoreUtils.formatString(vo.getPay()));
		this.setPaydetail(vo.getPaydetail());
	}
			
	public BusOrder getVO(){
		BusOrder po = new BusOrder();
		po.setOrderno(CoreUtils.parseLong(this.getOrderno()));
		po.setCharge(CoreUtils.parseBigDecimal(this.getCharge()));
		po.setChargedetail(this.getChargedetail());
		po.setPay(CoreUtils.parseBigDecimal(this.getPay()));
		po.setPaydetail(this.getPaydetail());
		return po;
	}
	
	
	public String getOrderno() {
		return orderno;
	}
	public void setOrderno(String orderno) {
		this.orderno = orderno;
	}
	public String getCharge() {
		return charge;
	}
	public void setCharge(String charge) {
		this.charge = charge;
	}
	public String getChargedetail() {
		return chargedetail;
	}
	public void setChargedetail(String chargedetail) {
		this.chargedetail = chargedetail;
	}

	public String getPay() {
		return pay;
	}

	public void setPay(String pay) {
		this.pay = pay;
	}

	public String getPaydetail() {
		return paydetail;
	}

	public void setPaydetail(String paydetail) {
		this.paydetail = paydetail;
	}

}
